{% extends 'PortalMainBundle::layout.html.twig' %}

{% block stylesheets %}
  {{ parent() }}
{% endblock %}
{% block content %}

  <div class="row-fluid">
    <h3>Миний хичээлүүд</h3>
  </div>
  <div class="row-fluid">
    <div class="span12">
      <div class="lineBox right">
        <div class="inner">
          <a title="" data-toggle="tooltip" class="btn metaIcon" href="#" data-original-title="Home"><span class="entypo home"><i></i>Home</span></a>
          <a class="btn btn-icon left btn-primary" href="#"><span class="entypo pencil"><i></i></span>site elements</a>
        </div>
      </div>
    </div>
  </div>
  <div class="pretty-table">
    <table>
      <thead>
        <tr>
          <th>№</th>
          <th>Хичээлийн бүлэг</th>
          <th>Хичээлийн нэр</th>
          <th>Хичээл заах хугацаа</th>
          <th>Сурагчын нэр</th>
          <th>Төлөв</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        {% set counter = 1 %}
        {% for lesson in lessonList %}
        <tr>
          <td>{{counter}}</td>
          <td>{{lesson.SUBJECT_CATEGORY_NAME}}</td>
          <td>{{lesson.SUBJECT_NAME}}</td>
          <td>{{lesson.START_DATE}} - {{lesson.END_DATE}}</td>
          <td>{{lesson.USER_FIRST_NAME}}</td>
          <td></td>
          <td><a href="{{path('lessonShow',{'lessonId':lesson.ID})}}">Харах</a></td>
        </tr>
        {% set counter = counter + 1 %}
        {% endfor %}
      </tbody>
    </table>
  </div>

{% endblock %}